#include "PepperoniPizza.h"

#include <iostream>

PepperoniPizza::PepperoniPizza(PizzaIngredientFactory *ingredientFactory){
    this->ingredientFactory = ingredientFactory;
}

void PepperoniPizza::prepare(){
    std::cout << "Preparing " << name;
    dough = ingredientFactory->createDough();
    sauce = ingredientFactory->createSauce();
    cheese = ingredientFactory->createCheese();
    pepperoni = ingredientFactory->createPepperoni();
}